<%@ page language="java" import="java.util.*,java.text.*"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>高级查询</title>
	</head>
<%
 response.setHeader("Content-disposition","attachment; filename=worklog.xls");  
%>
	<body>
		<table width="80%" border="1" cellpadding="1" cellspacing="2"
			style="border-collapse: collapse" align="left">
			<s:if test="#request.flag=='exportDaily'">
			<tr><td colspan="2">${dept.deptName}工作日志</td></tr>
			<tr>
				<td width="10%">
					日期
				</td>
				<td>
					${date}
				</td>
			</tr>
			<s:iterator value="worklogList">
				<tr>
					<td>
						${person.name}
					</td>
					<td>
						${content}
					</td>
				</tr>
			</s:iterator>
			</s:if>
			<s:else>
			<tr><td colspan="3">杭州优稳员工工作日志</td></tr>
			<tr>
				<td>
					姓名
				</td>
				<td>日志内容</td>
				<td width="10%">
					时间
				</td>
			</tr>
			<s:iterator value="worklogList">
				<tr>
					<td>
						${person.name}
					</td>
					<td>
						${content}
					</td>
					<td>${date}</td>
				</tr>
			</s:iterator>
			</s:else>
		</table>
	</body>
</html>
